package com.ldp.designpatterns.study.facade.facadeModel;

import com.ldp.designpatterns.study.facade.impl.Circle;
import com.ldp.designpatterns.study.facade.impl.Rectangle;
import com.ldp.designpatterns.study.facade.impl.Square;
import com.ldp.designpatterns.study.facade.service.Shape;
import lombok.Data;

/**
 * @ClassName ShapeMaker
 * @Description TODO:外观模式通_创建外观类
 * @Author lindipei
 * @Date 2023/10/17 16:34
 */
@Data
public class ShapeMaker {

    private Shape circle;
    private Shape rectangle;
    private Shape square;

    public ShapeMaker() {
        circle = new Circle();
        rectangle = new Rectangle();
        square = new Square();
    }

    public void drawCircle(){
        circle.draw();
    }
    public void drawRectangle(){
        rectangle.draw();
    }
    public void drawSquare(){
        square.draw();
    }
}
